package com.luomu.base.biz.cookBook.excel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.luomu.base.api.cookBook.excel.bo.CommonExportListDataReqBO;
import com.luomu.base.api.cookBook.excel.bo.CommonExportListDataRspBO;
import com.luomu.base.api.cookBook.excel.bo.CommonExportResultBO;
import com.luomu.base.biz.cookBook.excel.po.ExportFilePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ExportFileMapper extends BaseMapper<ExportFilePO> {

    int add(@Param("entity") ExportFilePO entities);

    int updateDataById(@Param("fileId") Long fileId, @Param("entity") CommonExportResultBO entities);

    List<CommonExportListDataRspBO> queryList(@Param("bo") CommonExportListDataReqBO reqBO, @Param("page") Page<CommonExportListDataRspBO> page);

    int deleteDataById(@Param("fileId") Long fileId);
}